<?php
// Module Definition
$module['name'] = 'Sendmail';
$module['description'] = 'Maintain sendmail configuration files.';
$module['depends'] = array('unix_users');
$module['excludes'] = array('exim4', 'virtualqmail', 'postfix');

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'enable':
		break;
	case 'disable':
		break;
	case 'hook':
		register_hook('web:lang', 'sendmail_add_lang');
		register_hook('web:cfg:default', 'sendmail_add_cfg');
		// Server hooks
		register_hook('server:cfg:default', 'sendmail_add_cfg');
		register_hook('server:domain:sys', 'sendmail_domains_generate');
		register_hook('server:user:sys', 'sendmail_users_generate');
		register_hook('server:user:create', 'sendmail_user_create');
		register_hook('server:user:update', 'sendmail_user_update');
		register_hook('server:user:remove', 'sendmail_user_remove');
		register_hook('server:user:backup', 'sendmail_user_backup');
		register_hook('server:user:suspend', 'sendmail_user_suspend');
		register_hook('server:user:unsuspend', 'sendmail_user_unsuspend');
		register_hook('server:service:monitor', 'sendmail_monitor');
		register_hook('server:service:start:sendmail', 'sendmail_start');
		register_hook('server:service:stop:sendmail', 'sendmail_stop');
		register_hook('server:service:restart:sendmail', 'sendmail_restart');
		break;
}
?>